use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    // let mut input = String::new();
    let mut count = 0;
    // io::stdin().read_line(&mut input).expect("error input");
    let mut set = HashSet::new();
    let input = input_str.trim().to_string();
    
    input.split(',').for_each(|v| {
        if !set.contains(v) {
            set.insert(v);
            count += 1;
        }
    });
    count as usize
}
